package com.youkeyi.ddy.cloud.common.api.application.business.crm.type;

import com.youkeyi.ddy.cloud.common.api.application.business.crm.type.dto.BusinessCustomerTypeListCloudDto;
import com.youkeyi.ddy.cloud.common.api.application.business.crm.type.param.BusinessCustomerTypeCreateCloudParam;
import com.youkeyi.ddy.cloud.common.api.application.business.crm.type.param.BusinessCustomerTypeDeleteCloudParam;
import com.youkeyi.ddy.cloud.common.api.application.business.crm.type.param.BusinessCustomerTypeListCloudParam;
import com.youkeyi.ddy.cloud.common.api.application.business.crm.type.param.BusinessCustomerTypeUpdateCloudParam;
import com.youkeyi.ddy.cloud.common.response.ResponseContent;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * BusinessCustomerTypeCloudServiceFallback
 *
 * @Author liuxiawang
 * @Date 1/28/22 4:12 PM
 * @Location shenzhen.china
 */
@Component
@RequestMapping("/business/customer/type/fallback")
public class BusinessCustomerTypeCloudServiceFallback implements BusinessCustomerTypeCloudService {

    @Override
    public BusinessCustomerTypeListCloudDto list(BusinessCustomerTypeListCloudParam param) {
        return new BusinessCustomerTypeListCloudDto(Boolean.FALSE, "服务不可用");
    }

    @Override
    public ResponseContent create(BusinessCustomerTypeCreateCloudParam param) {
        return new ResponseContent(Boolean.FALSE, "服务不可用");
    }

    @Override
    public ResponseContent update(BusinessCustomerTypeUpdateCloudParam param) {
        return new ResponseContent(Boolean.FALSE, "服务不可用");
    }

    @Override
    public ResponseContent delete(BusinessCustomerTypeDeleteCloudParam param) {
        return new ResponseContent(Boolean.FALSE, "服务不可用");
    }
}
